package com.ds.lens.data.common.query;

import com.alibaba.druid.pool.ElasticSearchDruidDataSourceFactory;

import javax.sql.DataSource;
import java.util.Properties;

public class DataSourceFactory {
    public DataSource getElasticDatasource(Properties properties) throws Exception {
        DataSource dds = ElasticSearchDruidDataSourceFactory.createDataSource(properties);
        return dds;
    }
}
